<p>
    first
    {#if true}
        <p>second
    {/if}
</p>
<p>
    first
    {#if true}
        <div>second</div>
    {/if}
</p>
